Optimal. Leaf size=129 \[ \frac {a \, _2F_1\left (1,\frac {1+p}{2};\frac {3+p}{2};-\tan ^2(e+f x)\right ) (g \tan (e+f x))^{1+p}}{f g (1+p)}+\frac {a \cos ^2(e+f x)^{\frac {1+p}{2}} \, _2F_1\left (\frac {1+p}{2},\frac {2+p}{2};\frac {4+p}{2};\sin ^2(e+f x)\right ) \sin (e+f x) (g \tan (e+f x))^{1+p}}{f g (2+p)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.10, antiderivative size = 129, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 5, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.238, Rules used = {2789, 3557,
371, 2682, 2657} \begin {gather*} \frac {a (g \tan (e+f x))^{p+1} \, _2F_1\left (1,\frac {p+1}{2};\frac {p+3}{2};-\tan ^2(e+f x)\right )}{f g (p+1)}+\frac {a \sin (e+f x) \cos ^2(e+f x)^{\frac {p+1}{2}} (g \tan (e+f x))^{p+1} \, _2F_1\left (\frac {p+1}{2},\frac {p+2}{2};\frac {p+4}{2};\sin ^2(e+f x)\right )}{f g (p+2)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 371
Rule 2657
Rule 2682
Rule 2789
Rule 3557
Rubi steps
\begin {align*} \int (a+a \sin (e+f x)) (g \tan (e+f x))^p \, dx &=\int \left (a (g \tan (e+f x))^p+a \sin (e+f x) (g \tan (e+f x))^p\right ) \, dx\\ &=a \int (g \tan (e+f x))^p \, dx+a \int \sin (e+f x) (g \tan (e+f x))^p \, dx\\ &=\frac {(a g) \text {Subst}\left (\int \frac {x^p}{g^2+x^2} \, dx,x,g \tan (e+f x)\right )}{f}+\frac {\left (a \cos ^{1+p}(e+f x) \sin ^{-1-p}(e+f x) (g \tan (e+f x))^{1+p}\right ) \int \cos ^{-p}(e+f x) \sin ^{1+p}(e+f x) \, dx}{g}\\ &=\frac {a \, _2F_1\left (1,\frac {1+p}{2};\frac {3+p}{2};-\tan ^2(e+f x)\right ) (g \tan (e+f x))^{1+p}}{f g (1+p)}+\frac {a \cos ^2(e+f x)^{\frac {1+p}{2}} \, _2F_1\left (\frac {1+p}{2},\frac {2+p}{2};\frac {4+p}{2};\sin ^2(e+f x)\right ) \sin (e+f x) (g \tan (e+f x))^{1+p}}{f g (2+p)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [F]
time = 1.10, size = 0, normalized size = 0.00 \begin {gather*} \int (a+a \sin (e+f x)) (g \tan (e+f x))^p \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.25, size = 0, normalized size = 0.00 \[\int \left (a +a \sin \left (f x +e \right )\right ) \left (g \tan \left (f x +e \right )\right )^{p}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} a \left (\int \left (g \tan {\left (e + f x \right )}\right )^{p}\, dx + \int \left (g \tan {\left (e + f x \right )}\right )^{p} \sin {\left (e + f x \right )}\, dx\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\left (g\,\mathrm {tan}\left (e+f\,x\right )\right )}^p\,\left (a+a\,\sin \left (e+f\,x\right )\right ) \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________